package com.bll.imple.userAction;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.bean.UserBean;
import com.bll.Action;
import com.dao.UserDao;

public class ShowUserAction implements Action{

	public String execute(HttpServletRequest request,
			HttpServletResponse response) {
		// �õ��û���id
		//System.out.println("id"+request.getParameter("id"));
		
		int id=Integer.parseInt(request.getSession().getAttribute("userId").toString());
		String lujing=request.getParameter("lujing");
		System.out.println("lujing:"+lujing);
		System.out.println("id:"+id);
		UserDao dao=new UserDao();
		UserBean bean=dao.selectById(id);
		request.setAttribute("userbean", bean);
		return lujing;
	}

}
